.ONESHELL:	
b:
	rm -rf ./dist/wwwroot
	mkdir -p ./dist/wwwroot	
	cd ./client
	pnpm install
	pnpm run build
	cp -r ./dist/* ../dist/wwwroot/
	
s:	
	cd ./server	
	go mod tidy
	swag i	
	CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o  ../dist/ .
	# go build -o  ../dist/ .
	cp ./appsettings.yaml ../dist/appsettings.yaml

bs:
	make b
	make s